import request from '@/utils/request'

export const getPackagePageApi = async (params: any) => {
    return request.get('/package', { params })
}

export const getPackageByIdApi = async (id: string) => {
    return request.get(`/package/${id}`)
}

export const createPackageApi = async (data: any) => {
    return request.post('/package', data)
}

export const updatePackageApi = async (id: any, data: any) => {
    return request.put(`/package/${id}`, data)
}

export const deletePackageApi = async (id: string) => {
    return request.delete(`/package/${id}`)
}
